package com.zenghus.v1;

import java.lang.reflect.Proxy;
import java.util.HashMap;
import java.util.Map;

public class Configuration {

    public <T> Object getMapper(Class<T> clazz, SqlSession sqlsession){
        return Proxy.newProxyInstance(clazz.getClassLoader(),new Class[]{clazz},new MapperProxy(sqlsession));
    }

    static class TestMapperXml{

        public static String namespace="com.zenghus.v1.TestMapper";

        public static final Map<String,String> methodmap=new HashMap<String,String>();

        static{
            methodmap.put("selectList","select * from test");
        }
    }
}
